'use strict';

module.exports = app => {
	const {INTEGER,STRING}=app.Sequelize;

	const Merchant=app.model.define('merchant',{
		id:{type:INTEGER,primaryKey:true},
		pid:{type:INTEGER},
		name:{type:STRING(128)},
		name_short:{type:STRING(64)},
		name_no:{type:STRING(64)},
		type:{type:INTEGER},
		contact:{type:STRING(64)},
		contact_phone:{type:STRING(13)},
		address:{type:STRING(255)},
		remark:{type:STRING(255)},
		create_id:{type:INTEGER},
		create_name:{type:STRING(64)},
		update_id:{type:INTEGER},
		update_name:{type:STRING(64)},
		create_time:{type:INTEGER},
		update_time:{type:INTEGER}});
	return Merchant;
};